import dynamic_proxy.DynamicProxyHttpProxy;
import static_proxy.VolleyHttp;
import static_proxy.XutilsHttp;
import static_proxy.HttpClientProxy;
import static_proxy.IHttp;

import java.lang.reflect.Proxy;

public class Test {
    public static void main(String[] args) {
        HttpClientProxy httpClientProxy = new HttpClientProxy();
        httpClientProxy.post("jp:123");



        IHttp xutilsHttp = new XutilsHttp();

        IHttp volleyHttp = new VolleyHttp();


        DynamicProxyHttpProxy xutilsDynamicProxyHttpProxy = new DynamicProxyHttpProxy(xutilsHttp);

        DynamicProxyHttpProxy volleyDynamicProxyHttpProxy = new DynamicProxyHttpProxy(volleyHttp);


        IHttp iHttp = (IHttp) Proxy.newProxyInstance(xutilsHttp.getClass().getClassLoader(),
                xutilsHttp.getClass().getInterfaces(), volleyDynamicProxyHttpProxy);
        iHttp.post("hello:456");






    }
}
